"""
parse uri

return model's name
"""

# list models of application
__model = {	
			''			: 'home',
			'about'		: 'about',
			'help'		: 'help',
			'post'		: 'post',
			'preview'	: 'preview',
			'view'		: 'view',
		 }

def parse(path):
	"parse the url and then return model's name"
	
	list = path.split('/')
	
	return __model[list[1].split('?')[0]]
